<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<script src="webpage/material/orderInfo/measure/orderMeasureList.js"></script>
<script src="webpage/material/orderInfo/selectUsers.js"></script>
<script type="text/javascript">  
	$('#addOrderMeasureBtn').linkbutton({   
	    iconCls: 'icon-add'  
	});  
	$('#delOrderMeasureBtn').linkbutton({   
	    iconCls: 'icon-remove'  
	}); 
	  
	$('#delOrderMeasureBtn').bind('click', function(){   
      	$("#add_orderMeasure_table").find("input:checked").parent().parent().remove();   
        resetTrNum('add_orderMeasure_table'); 
        return false;
    }); 
    $(document).ready(function(){
    	$(".datagrid-toolbar").parent().css("width","auto");
    	if(location.href.indexOf("load=detail")!=-1){
			$(":input").attr("disabled","true");
			$(".datagrid-toolbar").hide();
		}
		//将表格的表头固定
	    $("#orderMeasure_table").createhftable({
	    	height:'300px',
			width:'auto',
			fixFooter:false
			});
    });
</script>
<style>
th{
bgcolor:#E6E6E6;
}
th,td{
width:75px;
align:center;
}
</style>
<div style="padding: 3px; height: 25px;width:auto;" class="datagrid-toolbar">
	<a id="addOrderMeasureBtn" href="#" onclick="addBtnClick();">选择人员</a> <a id="delOrderMeasureBtn" href="#">删除</a> 
</div>
<table border="0" cellpadding="2" cellspacing="0" id="orderMeasure_table">
	<tr bgcolor="#E6E6E6">
		<th style="display: none">
			id
		</th>
<th >
						选择
				  </th>
				  
				  <th >
						姓名
				  </th>
				  <th >
						电话
				  </th>
	</tr>
	<tbody id="add_orderMeasure_table">	
	
		<c:forEach items="${orderMeasureList}" var="poVal" varStatus="stuts">
			<tr>
				
				<td  style="display:none">
				   <input type="hidden" name="orderMeasureList[${stuts.index }].engineerId.id" value="${poVal.engineerId.id}"/>	
				</td>
				
				<td ><input style="width: 20px;" type="checkbox" name="ck" /></td>
				<td >
				
				     <input  name="orderMeasureList[${stuts.index }].engineerName" value="${poVal.engineerName}"  disabled="disabled"/>	
				</td>
				
				<td >
					
					<input name="orderMeasureList[${stuts.index }].engineerTel" value="${poVal.engineerTel}"  disabled="disabled"/>
				</td>
				   
   			</tr>
		</c:forEach>
	
	</tbody>
</table>
